      <style type="text/css">
		.navbar{
			background-color:#FFF;
		}
		.navbar a{
			color:#000;
		}
		.navbar li a{
			color:#000;
		}
		.dropdown-menu li a{
			color:#000;
		}
	  </style>
	  <nav class="navbar" role="navigation" >
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="{:U('Index/index')}">代码轮子</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-collapse-example">
          <ul class="nav navbar-nav">
            <li class="active"><a href="{:U('Index/index')}">首页</a></li>
            <li class="active"><a href="{:U('Index/about')}">关于</a></li>
          </ul>
          <div class="navbar-form navbar-left" role="search">
            <div class="form-group">
              <input type="text" id="menu_search_keyword" class="form-control" placeholder="请输入关键词" value={$keyword}>
            </div>
            <button  class="btn btn-default" id="menu_search">搜索</button>
          </div>
          <ul class="nav navbar-nav navbar-right">
			<li><a href="{:U('Index/add_info')}"><i class="icon icon-plus-sign" style="color:#08c"></i>发布</a></li>
			<php>if($_SESSION['email']){</php>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">设置/管理 <b class="caret"></b></a>
              <ul class="dropdown-menu" role="menu">
				<php>if($_SESSION['is_admin']==1){</php>
                <li><a href="{:U('User/set_tags')}">标签设置</a></li>
				<php>}</php>
                <li class="divider"></li>
                <li><a href="{:U('User/login_out')}">退出</a></li>
              </ul>
            </li>
			<php>}else{</php> 
			<li><a href="{:U('User/login')}"><i class="icon icon-user" style="color:#08c"></i>登录</a></li>
			<php>}</php> 
           
          </ul>
        </div><!-- /.navbar-collapse -->
      </nav>
<script>
	$("#menu_search").click(function(){
		  var keyword=$("#menu_search_keyword").val();
		  $.post("{:U('Index/tmp_search')}",{keyword:keyword},function(result){
			self.location=result.url;
		  });
	});
	$("#menu_search_keyword").keypress( function(e) {
			var key = window.event ? e.keyCode : e.which;
			if(key.toString() == "13"){
				var keyword=$("#menu_search_keyword").val();
				  $.post("{:U('Index/tmp_search')}",{keyword:keyword},function(result){
					self.location=result.url;
				});
				return false;
			}
	});
</script>
	<div class="container">